package com.yfq.springframework.beans;

import com.sun.istack.internal.Nullable;

/**
 * @author: yfq
 * @date: 2023/1/31 14:22
 * @description:
 */
public interface FactoryBean<T> {

    @Nullable
    T getObject() throws Exception;

    @Nullable
    Class<?> getObjectType();

    default boolean isSingleton() {
        return true;
    }

}
